/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hyce;

/**
 *
 * @author goodsam
 */
public class Password
{
    private String password;
    public String Password()
    {
        return this.password;
    }

    public static String getPassword(String[] args)
    {
        int passwordArg = -1;
        for (int i = 0; i < args.length; i++)
        {
            if (args[i].compareTo("-p") == 0)
            {
                passwordArg = i+=1;
                break;
            }
        }

        if (passwordArg != -1)
            return args[passwordArg];
        else
            return null;
    }
}
